package org.kk.service;

import com.kk.entities.Payment;
import com.kk.model.result.GlobalResult;
import org.springframework.stereotype.Component;

/**
 * the type of springcloud-alibaba
 *
 * <p>
 * .
 *
 * @author 铁甲小宝
 * @date 2023-02-13
 */
@Component
public class ConsumerFallbackService implements ConsumerService8401 {
    @Override
    public GlobalResult<Payment> getPaymentById(int id) {
        Payment payment = new Payment(id, "没有这样的货物");
        return new GlobalResult<>("444","服务降级，出事了我来兜底!!!", payment);
    }
}
